package com.googlecode.lookie.platform.image.io;

import java.awt.Image;
import java.io.IOException;
import java.io.InputStream;

import javax.imageio.ImageIO;

public class JdkReader
    extends AbstractReader
    implements Reader
{

    private String name;

    public JdkReader( String name )
    {
        super();
        this.name = "JDK " + name + " Reader";
    }

    public String getName()
    {
        return name;
    }

    @Override
    protected Image doRead( InputStream is )
        throws IOException
    {
        return ImageIO.read( is );
    }

}
